/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: DELL
 * Date: 2022-09-25
 * Time: 14:39
 */
public class Test_SingleLinkedList {

    public static void main(String[] args) {
        SingleLinkedList list = new SingleLinkedList();
        list.addLast(12);
        list.addLast(12);
        list.addLast(12);
        list.addLast(12);
        list.addLast(12);
        list.removeAllKey(12);

        list.display2(list.head);
/*
        System.out.println(list.size());
        System.out.println("==========");
        try {
            list.addIndex(0,88);
            //list.addIndex(6,88);
        }catch (IndextIlligelException e){
            e.printStackTrace();
        }
        list.display();
        System.out.println("==========");

        try {
            System.out.println(list.contains(12));
        }catch (EmptyException e){
            e.printStackTrace();
        }
        System.out.println("==========");
        list.remove(88);

        list.remove(99);
        list.display();
        System.out.println("==========");
        list.removeAllKey(12);
        list.display();
*/


    }
}
